package com.gitee.wsl.transform.encode

import com.gitee.wsl.security.encrypt.sample.Rot
import kotlin.test.Test
import kotlin.test.assertEquals

class RotTest {
    @Test
    fun rot13Test() {
        val str = "1f2e9df6131b480b9fdddc633cf24996"

        val encode13 = Rot.encode13(str)
        assertEquals("4s5r2qs9464o713o2sqqqp966ps57229", encode13)

        val decode13 = Rot.decode13(encode13)
        assertEquals(str, decode13)
    }
}